﻿using System;

namespace FootballProject.BL.BuisnessObjects
{
    public class MatchStatistic
    {
        #region ctor

        public MatchStatistic(Division divisionLeage)
        {
            LeageDivision = divisionLeage;
        }
        
        public MatchStatistic(Division divisionLeage, TeamStatistics homeTeam, TeamStatistics awayTeam):this(divisionLeage)
        {
            HomeTeam = homeTeam;
            AwayTeam = awayTeam;
        }

        public MatchStatistic(Division divisionLeage, TeamStatistics homeTeam, TeamStatistics awayTeam, DateTime matchDate)
            : this(divisionLeage,homeTeam,awayTeam)
        {
            MatchDate = matchDate;
        }


        #endregion

        #region Properties

        public Division LeageDivision { get; set; }
        public DateTime MatchDate { get; set; }
        public TeamStatistics HomeTeam { get; private set; }
        public TeamStatistics AwayTeam { get; private set; }
        public Referee Referee { get; set; }
        public Result HalfTimeResult { get; set; }
        public Result FullTimeResult { get; set; }

        #endregion

        #region Methods

        public void SaveToDB()
        {

        }

        #endregion
    }

}
